<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
  <title>赞助详情 - 社交平台</title>
  <!-- Bootstrap 5 CSS -->
  <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
  <!-- Font Awesome -->
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/font-awesome@4.7.0/css/font-awesome.min.css">
  
  <style>
    body {
      background-color: #f8f9fa;
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
      padding-bottom: 60px;
    }
    
    /* 顶部导航 */
    .top-nav {
      background-color: white;
      padding: 12px 15px;
      box-shadow: 0 2px 5px rgba(0,0,0,0.05);
      position: sticky;
      top: 0;
      z-index: 100;
    }
    
    .nav-title {
      font-size: 18px;
      font-weight: 600;
      text-align: center;
      margin: 0;
    }
    
    /* 赞助商信息 */
    .sponsor-header {
      background-color: white;
      padding: 15px;
      display: flex;
      align-items: center;
      border-bottom: 1px solid #eee;
    }
    
    .sponsor-logo {
      width: 60px;
      height: 60px;
      border-radius: 12px;
      object-fit: cover;
      margin-right: 15px;
    }
    
    .no-logo {
      width: 60px;
      height: 60px;
      border-radius: 12px;
      background-color: #f1f3f5;
      display: flex;
      align-items: center;
      justify-content: center;
      color: #495057;
      font-size: 24px;
      margin-right: 15px;
    }
    
    .sponsor-info {
      flex: 1;
    }
    
    .sponsor-name {
      font-size: 18px;
      font-weight: 600;
      color: #333;
      margin-bottom: 5px;
    }
    
    .sponsor-type {
      font-size: 14px;
      color: #666;
      display: flex;
      align-items: center;
      margin-bottom: 3px;
    }
    
    .sponsor-type i {
      color: #fd7e14;
      margin-right: 5px;
    }
    
    .sponsor-rating {
      display: flex;
      align-items: center;
      font-size: 13px;
      color: #666;
    }
    
    .rating-stars {
      color: #fd7e14;
      margin: 0 5px;
    }
    
    /* 操作按钮组 */
    .action-buttons {
      display: flex;
      padding: 12px 15px;
      background-color: white;
      border-bottom: 1px solid #eee;
      gap: 10px;
    }
    
    .action-btn {
      flex: 1;
      padding: 8px 0;
      border-radius: 8px;
      font-size: 14px;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 5px;
    }
    
    /* 赞助详情内容 */
    .sponsorship-detail {
      background-color: white;
      margin-top: 10px;
      border-radius: 12px;
      overflow: hidden;
      box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    }
    
    .detail-header {
      padding: 15px;
      border-bottom: 1px solid #eee;
    }
    
    .detail-title {
      font-size: 20px;
      font-weight: 600;
      color: #333;
      margin-bottom: 8px;
      line-height: 1.4;
    }
    
    .detail-meta {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      font-size: 13px;
      color: #666;
    }
    
    .detail-tag {
      display: inline-block;
      padding: 3px 8px;
      background-color: #fff3cd;
      color: #fd7e14;
      border-radius: 4px;
      font-size: 12px;
    }
    
    .detail-content {
      padding: 15px;
    }
    
    .content-section {
      margin-bottom: 20px;
    }
    
    .section-heading {
      font-size: 16px;
      font-weight: 600;
      color: #333;
      margin-bottom: 10px;
      display: flex;
      align-items: center;
    }
    
    .section-heading i {
      color: #0d6efd;
      margin-right: 8px;
      font-size: 18px;
    }
    
    .content-text {
      font-size: 15px;
      color: #555;
      line-height: 1.6;
      margin-bottom: 15px;
    }
    
    /* 图片展示区 */
    .image-gallery {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 8px;
      margin-bottom: 15px;
    }
    
    .gallery-image {
      aspect-ratio: 1;
      border-radius: 8px;
      overflow: hidden;
      position: relative;
    }
    
    .gallery-image img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
    
    .gallery-image.big {
      grid-column: span 2;
      aspect-ratio: 16/9;
    }
    
    /* 数据统计 */
    .stats-container {
      display: flex;
      justify-content: space-around;
      padding: 15px;
      background-color: #f9fafb;
      border-top: 1px solid #eee;
      border-bottom: 1px solid #eee;
    }
    
    .stat-item {
      display: flex;
      flex-direction: column;
      align-items: center;
    }
    
    .stat-value {
      font-size: 18px;
      font-weight: 600;
      color: #333;
      margin-bottom: 3px;
    }
    
    .stat-label {
      font-size: 12px;
      color: #666;
    }
    
    /* 留言区 */
    .comments-section {
      background-color: white;
      margin-top: 10px;
      border-radius: 12px;
      overflow: hidden;
      box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    }
    
    .comments-header {
      padding: 15px;
      border-bottom: 1px solid #eee;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }
    
    .comments-title {
      font-size: 16px;
      font-weight: 600;
      color: #333;
      display: flex;
      align-items: center;
    }
    
    .comments-title i {
      color: #0d6efd;
      margin-right: 8px;
    }
    
    .comments-count {
      font-size: 13px;
      color: #666;
      margin-left: 8px;
    }
    
    /* 留言输入框 */
    .comment-input-container {
      padding: 15px;
      border-bottom: 1px solid #eee;
    }
    
    .comment-input-wrapper {
      display: flex;
      gap: 10px;
    }
    
    .user-avatar {
      width: 36px;
      height: 36px;
      border-radius: 50%;
      object-fit: cover;
      flex-shrink: 0;
    }
    
    .no-avatar {
      width: 36px;
      height: 36px;
      border-radius: 50%;
      background-color: #e9ecef;
      display: flex;
      align-items: center;
      justify-content: center;
      color: #495057;
      font-size: 16px;
      flex-shrink: 0;
    }
    
    .comment-input-box {
      flex: 1;
    }
    
    .comment-input {
      width: 100%;
      padding: 10px 12px;
      border-radius: 20px;
      border: 1px solid #ddd;
      font-size: 14px;
      resize: none;
      height: 40px;
      transition: height 0.3s ease;
    }
    
    .comment-input:focus {
      outline: none;
      border-color: #0d6efd;
      height: 80px;
    }
    
    .input-actions {
      display: flex;
      justify-content: flex-end;
      margin-top: 8px;
      gap: 10px;
    }
    
    .input-action-btn {
      font-size: 14px;
      padding: 5px 12px;
      border-radius: 16px;
    }
    
    /* 留言列表 */
    .comments-list {
      padding: 0 15px;
      max-height: 400px;
      overflow-y: auto;
    }
    
    .comment-item {
      padding: 15px 0;
      border-bottom: 1px solid #eee;
      display: flex;
      gap: 10px;
    }
    
    .comment-item:last-child {
      border-bottom: none;
    }
    
    .comment-content {
      flex: 1;
    }
    
    .comment-header {
      display: flex;
      justify-content: space-between;
      margin-bottom: 5px;
    }
    
    .comment-author {
      font-size: 14px;
      font-weight: 600;
      color: #333;
    }
    
    .comment-time {
      font-size: 12px;
      color: #999;
    }
    
    .comment-text {
      font-size: 14px;
      color: #555;
      margin-bottom: 8px;
      line-height: 1.5;
    }
    
    .comment-actions {
      display: flex;
      gap: 15px;
      font-size: 12px;
    }
    
    .comment-action {
      color: #666;
      display: flex;
      align-items: center;
      gap: 3px;
      cursor: pointer;
    }
    
    .comment-action:hover {
      color: #0d6efd;
    }
    
    /* 回复区域 */
    .replies-container {
      margin-top: 10px;
      padding-left: 15px;
      border-left: 2px solid #eee;
    }
    
    .reply-item {
      padding: 8px 0;
      display: flex;
      gap: 8px;
    }
    
    .reply-content {
      flex: 1;
      background-color: #f9fafb;
      padding: 8px 12px;
      border-radius: 12px;
      font-size: 13px;
    }
    
    .reply-author {
      font-weight: 600;
      color: #333;
      margin-right: 5px;
    }
    
    .reply-text {
      color: #555;
    }
    
    .reply-actions {
      display: flex;
      gap: 10px;
      margin-top: 5px;
      font-size: 11px;
      color: #666;
    }
    
    .reply-action {
      cursor: pointer;
    }
    
    .reply-action:hover {
      color: #0d6efd;
    }
    
    /* 底部导航 */
    .bottom-nav {
      position: fixed;
      bottom: 0;
      left: 0;
      right: 0;
      background-color: white;
      border-top: 1px solid #eee;
      display: flex;
      padding: 8px 0;
      z-index: 1000;
    }
    
    .nav-item {
      flex: 1;
      display: flex;
      flex-direction: column;
      align-items: center;
      color: #999;
      font-size: 10px;
    }
    
    .nav-item.active {
      color: #0d6efd;
    }
    
    .nav-icon {
      font-size: 20px;
      margin-bottom: 3px;
    }
    
    /* 相关推荐 */
    .related-sponsorships {
      background-color: white;
      margin-top: 10px;
      border-radius: 12px;
      overflow: hidden;
      box-shadow: 0 2px 8px rgba(0,0,0,0.05);
      margin-bottom: 70px;
    }
    
    .related-header {
      padding: 15px;
      border-bottom: 1px solid #eee;
    }
    
    .related-title {
      font-size: 16px;
      font-weight: 600;
      color: #333;
      display: flex;
      align-items: center;
    }
    
    .related-title i {
      color: #0d6efd;
      margin-right: 8px;
    }
    
    .related-list {
      padding: 10px 15px;
      display: flex;
      gap: 15px;
      overflow-x: auto;
      padding-bottom: 15px;
    }
    
    .related-item {
      flex: 0 0 160px;
    }
    
    .related-image {
      width: 100%;
      height: 100px;
      border-radius: 8px;
      overflow: hidden;
      margin-bottom: 8px;
    }
    
    .related-image img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
    
    .related-name {
      font-size: 14px;
      font-weight: 600;
      color: #333;
      margin-bottom: 3px;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
      line-height: 1.3;
    }
    
    .related-sponsor {
      font-size: 12px;
      color: #666;
    }
  </style>
</head>
<body>
  <!-- 顶部导航 -->
  <div class="top-nav d-flex justify-content-between align-items-center">
    <button class="btn btn-link p-0 text-dark">
      <i class="fa fa-arrow-left"></i>
    </button>
    <h1 class="nav-title">赞助详情</h1>
    <button class="btn btn-link p-0 text-dark">
      <i class="fa fa-share-alt"></i>
    </button>
  </div>
  
  <!-- 赞助商信息 -->
  <div class="sponsor-header">
    <img src="https://picsum.photos/200/200?random=1" class="sponsor-logo" alt="赞助商logo">
    <div class="sponsor-info">
      <div class="sponsor-name">科技未来有限公司</div>
      <div class="sponsor-type"><i class="fa fa-trophy"></i> 年度独家合作伙伴</div>
      <div class="sponsor-rating">
        <span>赞助商评级：</span>
        <span class="rating-stars">
          <i class="fa fa-star"></i>
          <i class="fa fa-star"></i>
          <i class="fa fa-star"></i>
          <i class="fa fa-star"></i>
          <i class="fa fa-star-half-o"></i>
        </span>
        <span>4.5</span>
      </div>
    </div>
    <button class="btn btn-primary">关注</button>
  </div>
  
  <!-- 操作按钮组 -->
  <div class="action-buttons">
    <button class="btn btn-outline-primary action-btn">
      <i class="fa fa-handshake-o"></i> 联系合作
    </button>
    <button class="btn btn-outline-secondary action-btn">
      <i class="fa fa-heart-o"></i> 收藏
    </button>
    <button class="btn btn-outline-secondary action-btn">
      <i class="fa fa-share-alt"></i> 分享
    </button>
  </div>
  
  <!-- 赞助详情内容 -->
  <div class="sponsorship-detail">
    <div class="detail-header">
      <div class="detail-title">
        <span class="detail-tag">独家</span>
        2023科技创新峰会全程赞助
      </div>
      <div class="detail-meta">
        <div><i class="fa fa-calendar-o"></i> 2023-11-15 至 2023-11-20</div>
        <div><i class="fa fa-map-marker"></i> 国际会议中心</div>
        <div><i class="fa fa-money"></i> 50万元</div>
      </div>
    </div>
    
    <div class="detail-content">
      <div class="content-section">
        <h3 class="section-heading"><i class="fa fa-info-circle"></i> 赞助详情</h3>
        <div class="content-text">
          作为本次峰会的独家赞助商，科技未来有限公司将为参会者提供最新科技产品体验，并设立专属展区展示人工智能前沿技术应用案例。
        </div>
        <div class="content-text">
          赞助权益包括：主会场品牌展示、主题演讲机会、VIP晚宴冠名、会议资料袋广告、参会者礼品赞助等。
        </div>
      </div>
      
      <div class="content-section">
        <h3 class="section-heading"><i class="fa fa-picture-o"></i> 活动现场</h3>
        <div class="image-gallery">
          <div class="gallery-image big">
            <img src="https://picsum.photos/800/450?random=20" alt="活动现场图片">
          </div>
          <div class="gallery-image">
            <img src="https://picsum.photos/400/400?random=21" alt="活动现场图片">
          </div>
          <div class="gallery-image">
            <img src="https://picsum.photos/400/400?random=22" alt="活动现场图片">
          </div>
          <div class="gallery-image">
            <img src="https://picsum.photos/400/400?random=23" alt="活动现场图片">
          </div>
          <div class="gallery-image">
            <img src="https://picsum.photos/400/400?random=24" alt="活动现场图片">
          </div>
        </div>
      </div>
      
      <div class="content-section">
        <h3 class="section-heading"><i class="fa fa-list-alt"></i> 赞助回报</h3>
        <div class="content-text">
          1. 品牌曝光：在所有活动宣传材料中突出展示品牌标识，包括官网、邀请函、社交媒体等。
        </div>
        <div class="content-text">
          2. 演讲机会：公司CEO将获得20分钟主题演讲机会，面向所有参会者分享行业见解。
        </div>
        <div class="content-text">
          3. 展位权益：获得30平方米的豪华展位，可展示最新产品和技术方案。
        </div>
        <div class="content-text">
          4. 客户对接：优先安排与重要参会嘉宾的一对一洽谈机会。
        </div>
      </div>
    </div>
    
    <!-- 数据统计 -->
    <div class="stats-container">
      <div class="stat-item">
        <div class="stat-value">1.2k</div>
        <div class="stat-label">浏览量</div>
      </div>
      <div class="stat-item">
        <div class="stat-value">86</div>
        <div class="stat-label">收藏数</div>
      </div>
      <div class="stat-item">
        <div class="stat-value">32</div>
        <div class="stat-label">留言数</div>
      </div>
      <div class="stat-item">
        <div class="stat-value">15</div>
        <div class="stat-label">合作咨询</div>
      </div>
    </div>
  </div>
  
  <!-- 相关推荐 -->
  <div class="related-sponsorships">
    <div class="related-header">
      <h3 class="related-title"><i class="fa fa-thumbs-up"></i> 相关赞助</h3>
    </div>
    <div class="related-list">
      <div class="related-item">
        <div class="related-image">
          <img src="https://picsum.photos/400/300?random=30" alt="相关赞助图片">
        </div>
        <div class="related-name">人工智能产业论坛赞助</div>
        <div class="related-sponsor">未来科技研究院</div>
      </div>
      <div class="related-item">
        <div class="related-image">
          <img src="https://picsum.photos/400/300?random=31" alt="相关赞助图片">
        </div>
        <div class="related-name">科技创新成果展</div>
        <div class="related-sponsor">环球科技集团</div>
      </div>
      <div class="related-item">
        <div class="related-image">
          <img src="https://picsum.photos/400/300?random=32" alt="相关赞助图片">
        </div>
        <div class="related-name">数字经济峰会</div>
        <div class="related-sponsor">数字中国联盟</div>
      </div>
    </div>
  </div>
  
  <!-- 留言区 -->
  <div class="comments-section">
    <div class="comments-header">
      <h3 class="comments-title">
        <i class="fa fa-comments"></i> 留言讨论
        <span class="comments-count">(32)</span>
      </h3>
      <button class="btn btn-link p-0 text-dark">
        <i class="fa fa-sort"></i>
      </button>
    </div>
    
    <!-- 留言输入框 -->
    <div class="comment-input-container">
      <div class="comment-input-wrapper">
        <div class="no-avatar">
          <i class="fa fa-user"></i>
        </div>
        <div class="comment-input-box">
          <textarea class="comment-input" placeholder="分享你的想法..."></textarea>
          <div class="input-actions">
            <button class="btn btn-outline-secondary input-action-btn">取消</button>
            <button class="btn btn-primary input-action-btn">发送</button>
          </div>
        </div>
      </div>
    </div>
    
    <!-- 留言列表 -->
    <div class="comments-list">
      <!-- 留言1 -->
      <div class="comment-item">
        <img src="https://picsum.photos/100/100?random=40" class="user-avatar" alt="用户头像">
        <div class="comment-content">
          <div class="comment-header">
            <div class="comment-author">张小明</div>
            <div class="comment-time">2小时前</div>
          </div>
          <div class="comment-text">
            这个峰会我参加了，科技未来的展位非常吸引人，他们展示的AI产品很有创新力！
          </div>
          <div class="comment-actions">
            <div class="comment-action"><i class="fa fa-thumbs-o-up"></i> 12</div>
            <div class="comment-action"><i class="fa fa-reply"></i> 回复</div>
          </div>
          
          <!-- 回复区 -->
          <div class="replies-container">
            <div class="reply-item">
              <img src="https://picsum.photos/100/100?random=1" class="user-avatar" alt="用户头像">
              <div class="reply-content">
                <span class="reply-author">科技未来官方</span>
                <span class="reply-text">感谢您的认可，我们会继续努力推出更多创新产品！</span>
                <div class="reply-actions">
                  <div class="reply-action">赞 (3)</div>
                  <div class="reply-action">回复</div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
      
      <!-- 留言2 -->
      <div class="comment-item">
        <div class="no-avatar">
          <i class="fa fa-user"></i>
        </div>
        <div class="comment-content">
          <div class="comment-header">
            <div class="comment-author">李创业</div>
            <div class="comment-time">昨天 15:30</div>
          </div>
          <div class="comment-text">
            想了解一下这样的独家赞助大概需要多少预算？我们公司也想参与类似的活动赞助。
          </div>
          <div class="comment-actions">
            <div class="comment-action"><i class="fa fa-thumbs-o-up"></i> 5</div>
            <div class="comment-action"><i class="fa fa-reply"></i> 回复</div>
          </div>
          
          <!-- 回复区 -->
          <div class="replies-container">
            <div class="reply-item">
              <img src="https://picsum.photos/100/100?random=41" class="user-avatar" alt="用户头像">
              <div class="reply-content">
                <span class="reply-author">活动策划小王</span>
                <span class="reply-text">这种级别的峰会独家赞助一般在30-80万之间，具体要看规模和影响力</span>
                <div class="reply-actions">
                  <div class="reply-action">赞 (2)</div>
                  <div class="reply-action">回复</div>
                </div>
              </div>
            </div>
            <div class="reply-item">
              <div class="no-avatar">
                <i class="fa fa-user"></i>
              </div>
              <div class="reply-content">
                <span class="reply-author">李创业</span>
                <span class="reply-text">谢谢解答，很有参考价值</span>
                <div class="reply-actions">
                  <div class="reply-action">赞 (0)</div>
                  <div class="reply-action">回复</div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
      
      <!-- 留言3 -->
      <div class="comment-item">
        <img src="https://picsum.photos/100/100?random=42" class="user-avatar" alt="用户头像">
        <div class="comment-content">
          <div class="comment-header">
            <div class="comment-author">王科技</div>
            <div class="comment-time">3天前</div>
          </div>
          <div class="comment-text">
            有没有演讲视频可以回看？当时有事没参加成，很想看看科技未来CEO的分享。
          </div>
          <div class="comment-actions">
            <div class="comment-action"><i class="fa fa-thumbs-o-up"></i> 8</div>
            <div class="comment-action"><i class="fa fa-reply"></i> 回复</div>
          </div>
        </div>
      </div>
    </div>
  </div>
  
  <!-- 底部导航 -->
  <div class="bottom-nav">
    <a href="#" class="nav-item">
      <i class="fa fa-home nav-icon"></i>
      <span>首页</span>
    </a>
    <a href="#" class="nav-item">
      <i class="fa fa-compass nav-icon"></i>
      <span>发现</span>
    </a>
    <a href="#" class="nav-item active">
      <i class="fa fa-handshake-o nav-icon"></i>
      <span>赞助</span>
    </a>
    <a href="#" class="nav-item">
      <i class="fa fa-user nav-icon"></i>
      <span>我的</span>
    </a>
  </div>

  <!-- Bootstrap JS -->
  <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
  
  <script>
    // 点赞功能
    document.querySelectorAll('.comment-action .fa-thumbs-o-up').forEach(thumb => {
      thumb.addEventListener('click', function(e) {
        e.stopPropagation();
        const actionEl = this.parentElement;
        let count = parseInt(actionEl.textContent.trim().split(' ').pop());
        
        if (this.classList.contains('text-primary')) {
          this.classList.remove('text-primary');
          actionEl.innerHTML = `<i class="fa fa-thumbs-o-up"></i> ${count - 1}`;
        } else {
          this.classList.add('text-primary');
          actionEl.innerHTML = `<i class="fa fa-thumbs-o-up text-primary"></i> ${count + 1}`;
        }
      });
    });
    
    // 回复点赞功能
    document.querySelectorAll('.reply-action').forEach(action => {
      if (action.textContent.includes('赞')) {
        action.addEventListener('click', function(e) {
          e.stopPropagation();
          let count = parseInt(this.textContent.trim().split(' ')[1].replace('(', '').replace(')', ''));
          
          if (this.classList.contains('text-primary')) {
            this.classList.remove('text-primary');
            this.textContent = `赞 (${count - 1})`;
          } else {
            this.classList.add('text-primary');
            this.textContent = `赞 (${count + 1})`;
          }
        });
      }
    });
    
    // 回复功能
    document.querySelectorAll('.comment-action .fa-reply').forEach(replyIcon => {
      replyIcon.addEventListener('click', function(e) {
        e.stopPropagation();
        const commentItem = this.closest('.comment-item');
        const authorName = commentItem.querySelector('.comment-author').textContent;
        
        // 聚焦到输入框并填充回复前缀
        const commentInput = document.querySelector('.comment-input');
        commentInput.value = `回复 @${authorName}：`;
        commentInput.focus();
        commentInput.style.height = '80px';
        
        // 滚动到输入框
        commentInput.scrollIntoView({ behavior: 'smooth', block: 'center' });
      });
    });
    
    // 回复区内的回复功能
    document.querySelectorAll('.reply-action').forEach(action => {
      if (action.textContent.includes('回复')) {
        action.addEventListener('click', function(e) {
          e.stopPropagation();
          const replyItem = this.closest('.reply-item');
          const authorName = replyItem.querySelector('.reply-author').textContent;
          
          // 聚焦到输入框并填充回复前缀
          const commentInput = document.querySelector('.comment-input');
          commentInput.value = `回复 @${authorName}：`;
          commentInput.focus();
          commentInput.style.height = '80px';
          
          // 滚动到输入框
          commentInput.scrollIntoView({ behavior: 'smooth', block: 'center' });
        });
      }
    });
    
    // 收藏功能
    const favoriteBtn = document.querySelector('.action-btn .fa-heart-o').parentElement;
    favoriteBtn.addEventListener('click', function() {
      const icon = this.querySelector('i');
      
      if (icon.classList.contains('fa-heart-o')) {
        icon.classList.remove('fa-heart-o');
        icon.classList.add('fa-heart', 'text-danger');
        this.classList.remove('btn-outline-secondary');
        this.classList.add('btn-danger');
      } else {
        icon.classList.remove('fa-heart', 'text-danger');
        icon.classList.add('fa-heart-o');
        this.classList.remove('btn-danger');
        this.classList.add('btn-outline-secondary');
      }
    });
    
    // 关注功能
    const followBtn = document.querySelector('.sponsor-header .btn-primary');
    followBtn.addEventListener('click', function() {
      if (this.textContent === '关注') {
        this.textContent = '已关注';
        this.classList.remove('btn-primary');
        this.classList.add('btn-secondary');
      } else {
        this.textContent = '关注';
        this.classList.remove('btn-secondary');
        this.classList.add('btn-primary');
      }
    });
  </script>
</body>
</html>
